package mypro01;

public class TestBreakContinue {
	public static void main(String[] args) {
		int total = 0;
		System.out.println("Begin");
		while(true) {
			total++;
			int i = (int)Math.round(100 * Math.random());
			if (i == 88) {
				break;
			}
		}
		System.out.println("Game over, used" + total + "times");
		
		for (int j = 100; j < 150; j++) {
			if (j % 3 == 0) {
				continue;
			}
			System.out.println(j);
		}
		System.out.println("******************************");
		
		int count = 0;
		outer: for (int a = 101; a < 150; a++) {
			for (int b = 2; b < a / 2; b++) {
				if (a % b == 0){
					continue outer;
				}
			}
			System.out.print(a + "  ");
		}
		
	}
}
